<?php

/*Connection Information for the database
$def_coy - the default company that is pre-selected on login

'host' - the computer ip address or name where the database is. The default is 'localhost' assuming that the web server is also the sql server.

'dbuser' - the user name under which the company database should be accessed.
  NB it is not secure to use root as the dbuser with no password - a user with appropriate privileges must be set up.

'dbpassword' - the password required for the dbuser to authorise the above database user.

'dbname' - the name of the database as defined in the RDMS being used. Typically RDMS allow many databases to be maintained under the same server.
'tbpref' - prefix on table names, or '' if not used. Always use non-empty prefixes if multiply company use the same database.
*/
$con=mysql_connect('localhost', 'root', 'root');
if (!$con)
    die('Could not connect: ' . mysql_error()); 
mysql_select_db('wantedsettings', $con);        
$sql   ="SELECT * FROM fiscal_years where current = 1";
$result=mysql_query($sql, $con);                       
$myrow =mysql_fetch_array($result);
mysql_close($con);

$def_coy        =0;

$tb_pref_counter=0;

$db_connections=array(0 => array
    (
    'name'       => 'Freedom',
    'host'       => 'localhost',
    'dbuser'     => 'root',
    'dbpassword' => 'root',
    //'dbname' => 'wanted.old',
    'dbname'     => $myrow['dbname'],
    'tbpref'     => '',
    ),);
?>